<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>内容页</title>
		<link rel="stylesheet" type="text/css" href="<?php echo __PUBLIC__?>/Home/css/index.css" />
		<link rel="stylesheet" type="text/css" href="<?php echo __PUBLIC__?>/Home/css/cont.css" />
		<link rel="stylesheet" type="text/css" href="<?php echo __PUBLIC__?>/hdjs/hdjs.css"/>
		<script type="text/javascript" src='<?php echo __PUBLIC__?>/jquery-1.7.2.min.js'></script>
		<script src="<?php echo __PUBLIC__?>/hdjs/hdjs.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="<?php echo __PUBLIC__?>/Home/js/index.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
		$(function(){
			$('.cont .cont3 .cont3r .cont3r3 .selsize li').click(function(){
				$(this).addClass('on').siblings().removeClass('on');
				var gid=$(this).attr('gid');
				var gaid={};
				$.each($('.on'), function(k,v) {
					gaid[k]=$(this).attr('gaid');
				});
				var data={
					'gid':gid,
					'gaid':gaid,
				}
				$.ajax({
					type:"post",
					url:"<?php echo U('ajaxGetAttr')?>",
					data:{data:data},
					dataType:'json',
					success:function(phpData){
						var attr='';
						$.each(phpData, function(k,v) {
							attr+='<p class="setname">'+v.gavalue+',</p><input type="hidden" name="gaid[]" value="'+v.gavalue+'"/>';
							$('.cont .cont3 .cont3r .cont3r5 .cont3r5y span').html(attr);
						});
					}
				});
			});
			$('select[name=stocks]').change(function(){
				var set=$('select[name=stocks]').val();
				var art='￥'+set*'<?php echo $data['sale']?>';
				$('.CarBox_NumPrice p #shopcarcount').html(set);
				$('#shopcarcount1').html(art);
				
			});
			$('.btnaddtocart').click(function() {
				if($('.on').length<2){
					alert('请选择规格');
					return ;
				}
				$('.CarBox_Main').show();
			});
			
			$('.CarBox_Title span.close').click(function() {
				$('.CarBox_Main').hide();
			});
//			模态框
			$('.cont .cont3 .cont3l .smallimg ul li').mouseover(function() {
				$(this).addClass('onlickImg').siblings().removeClass('onlickImg');
			});
		});
		</script>
	</head>
	<body>
		<div class="head">
			<!--顶部导航-->
			<div class="headt">
				<div class="headTop">
					<div class="fl">您好,
						<span>欢迎光临凡客诚品！&nbsp;</span>
						<span>
							<?php if(empty($_SESSION['hname'])){ ?>
							<a href="<?php echo U('Login/index')?>">登录</a> |
							<a href="<?php echo U('Login/add')?>">注册</a>
							<?php }else{?>
							<a href=""><?php echo $_SESSION['hname']?></a>
							<a href="<?php echo U('Login/out')?>">退出</a>
							<?php } ?>
						</span>
					</div>
					<div class="headTop1 fl">
					<a href="">我的订单</a>
					<a href="">收藏本站</a>
					<a style=" display: inline-block; color: #b81c22; padding: 3px 8px 3px 0px; line-height: 26px;">双十一退换货说明</a>
					</div>
					<div class="headTopr" style="width:515px;">
						<div id="a1">
							<a class="b1">我的凡客</a>
							<div class="mapDropListBox">
								<ul class="mapDropList">
									<li><a href="<?php echo U('Order/index')?>">我的订单</a></li>
									<li><a>我的收藏</a></li>
								</ul>
							</div>
						</div>
						<div id="a1">
							<a class="b1">网站导航</a>
							<div class="mapDropListBox">
								<ul class="mapDropList">
									<li><a>网站联盟</a></li>
								</ul>
							</div>
						</div>
						<div id="a1">
							<a class="b1">帮助中心</a>
							<div class="mapDropListBox">
								<ul class="mapDropList">
									<li><a>购物指南</a></li>
									<li><a>配送方式</a></li>
									<li><a>支付方式</a></li>
									<li><a>售后服务</a></li>
									<li><a>建议反馈</a></li>
									<li><a>在线客服</a></li>
								</ul>
							</div>
						</div>
						<div id="a1">
							<a class="b1">网站公告</a>
							<div class="mapDropListBox">
								<ul class="mapDropList">
									<li><a>网站公告</a></li>
									<li><a>重要提示</a></li>
									<li><a>支付公告</a></li>
									<li><a>会员公告</a></li>
								</ul>
							</div>
						</div>
						<div id="a1">
							<a class="b2">手机凡客</a>
						</div>
						<div id="a1">
							<a class="b2 b3">在线客服</a>
						</div>
						<div class="headTopr1">
						<em></em>
						<a href="//g.vancl.com/m/page/gvancl" class="vweixinbox">
							<span class="b4" style="background: url(<?php echo __PUBLIC__?>/Home/img/w1.jpg) no-repeat left 3px;"></span>
							<b class="vweixinTip"></b>
						</a>
						<a href="//e.weibo.com/vancl" class="b4" target="_blank" style="background:url(<?php echo __PUBLIC__?>/Home/img/w2.jpg) no-repeat left 3px;">	
						</a>
					</div>
					</div>
				</div>
			</div>
			<!--搜索栏-->
			<div class="headc">
				<div class="hlogo">
					<a href="<?php echo U('index/index')?>"></a>
				</div>
				<div class="headcr">
					<div class="headcr1">
						<div class="fl">
							<input class="s1 fl" name="k" id="skey" value="搜“卡其裤”，体验与众不同" defaultkey="卡其裤" type="text">
							<input class="s2" id="btnHeaderSearch" onfocus="this.blur()" type="button">
						</div>
						<div class="headcr11"><p><a href="">购物车
						<span>(<?php echo $num1?>)</span></a></p></div>
					</div>
					<div class="headcr2">
						<p>
							热门搜索：
							<a href="">衬衫羽</a>
							<a href="">绒服</a>
							<a href="">针织衫</a>
							<a href="">羊毛外套</a>
							<a href="">休闲裤</a>
							<a href="">牛仔裤</a>
						</p>
					</div>
				</div>
			</div>
			<!--菜单栏-->
			<div class="cd">
				<div class="cdl fl">
				<span class="cdls">全部分类</span>
				</div>
				<ul class="fr">
					<?php foreach ($datat as $v){?>
					<li><a href="<?php echo U('List/index',array('cid'=>$v['cid']))?>"><?php echo $v['cname']?></a>
						<div class="i_item_pic">
							<div class="i_pic_content">
							<div class="picB"><a><img src="<?php echo __PUBLIC__?>/Home/img/6373701-1j201510141542507484.jpg"></a></div>
							<div class="contentB"><h3><a>MA-1</a></h3><p></p><span>￥449起</span></div>
							</div>
							<div class="i_pic_line"></div>
							<div class="i_pic_content">
							<div class="picB"><a><img src="<?php echo __PUBLIC__?>/Home/img/6373701-1j201510141542507484.jpg"></a></div>
							<div class="contentB"><h3><a>MA-2</a></h3><p></p><span>￥449起</span></div>
							</div>
						</div>
					</li>
					<?php }?>
				</ul>
			</div>
		</div>
			<!--内容-->
			<div class="cont">
				<span class="blank10"></span>
				<div class="cont1">
					<a href="" title="首页" name="nav">首页</a><span>&gt;</span>
					<a href="" title="男装">男装</a><span>&gt;</span>
					<a href="" title="卫衣">卫衣</a><span>&gt;</span>
					<a href="" title="开衫卫衣">开衫卫衣</a><span>&gt;</span>
					<input id="mainCategories" value="27531,27548,27575" type="hidden">
					<span id="styleinfo" name="1066530"><?php echo $data['gname']?></span>
				</div>
				<div class="cont2">
				<div style="height: 45px;border-bottom: 1px solid #E5E6E6;min-width: 980px;">
					    <div class="brandNumArea">
					    <span id="productcode">商品编号：6373520</span>
					    </div>
					    <h2><?php echo $data['gname']?></h2>
					    <ul class="fr">
					        <li><a href="#anchor1">产品描述</a>|</li>
					        <li><a href="#anchorPinglun">评论</a>|</li>
					        <li><a href="#anchorQuiz">提问</a></li>
					    </ul>
					</div>
					<span class="blank10" style="height: 30px;"></span>
				</div>
				<div class="cont3">
					<div class="cont3l fl">
						<div class="smallimg">
						<div class="smallImgUp" style="visibility: hidden"></div>
						<ul>
							<li class="onlickImg"><span style="background-image: url(<?php echo $data['photo'][2]?>);"></span></li>
							<li><span style="background-image: url(<?php echo $data['photo'][2]?>);background-position: 0px -68px;"></span></li>
							<li><span style="background-image: url(<?php echo $data['photo'][2]?>);background-position: 0px -136px;"></span></li>
							<li><span style="background-image: url(<?php echo $data['photo'][2]?>);background-position: 0px -204px;"></span></li>
							<li><span style="background-image: url(<?php echo $data['photo'][2]?>);background-position: 0px -272px;"></span></li>
						</ul>
						<div class="smallImgUp" style="visibility: hidden"></div>
						</div>
						<div class="bigimg">
							<div class="bigimg1">
								<img src="<?php echo $data['photo'][0]?>" alt="" />
								<div id="winSelector" style="display: none;"></div>
							</div>
						</div>
					</div>
				<form onsubmit="return hd_submit(this,'<?php echo U('Cont/index')?>','')" method="post">
					<div class="cont3r fr">
						<div class="cont3r1">
							<div>
							<span class="blank10"></span>
								<div class="cuxiaoPrice ">
								<span class="tehuiMoney">
								<span>售价：</span><span>￥<strong><?php echo $data['sale']?></strong></span>
								</span>
								</div>
							</div>
							<span class="blank20"></span>
						</div>
						<?php foreach ($spec as $v){?>
						<div class="cont3r3">
							<span class="blank10"></span>
							<div class="selsize">
								<p><?php echo $v['taname']?>：</p>
								<div class="selColor">
									<ul>
									<?php foreach ($v['opt'] as $vv){?>	
										<li gaid="<?php echo $vv['gaid']?>" gid="<?php echo $vv['goods_gid']?>"><p><?php echo $vv['gavalue']?></p></li>
									<?php }?>
									</ul>
								</div>
							</div>
						</div>
						<?php }?>	
						<div class="cont3r4">
							<p>数量：</p>
							<div class="num">
								<select style="float: left;" name="stocks">
									<option value="1">1</option>
						            <option value="2">2</option>
						            <option value="3">3</option>
						            <option value="4">4</option>
						            <option value="5">5</option>
						            <option value="6">6</option>
						            <option value="7">7</option>
						            <option value="8">8</option>
						            <option value="9">9</option>
						            <option value="10">10</option>
						          </select>
						          <p style="margin-left:10px ;">库存：<?php echo $data['stocks']?></p>
						         <span class="bla style="height: 15px;"></span>
							</div>
						</div>
						<div class="cont3r5">
							<div class="cont3r5y">
								<p>已选:</p>
								<span>
									
								</span>
								<input type="hidden" name='gid' value="<?php echo $data['gid']?>"/>
								<input type="hidden" name='gname' value="<?php echo $data['gname']?>"/>
								<input type="hidden" name='sale' value="<?php echo $data['sale']?>"/>
								<?php if(!$data['stocks']){?>
                
								<p class="NowHasGoods">无货</p>
								<?php }else{?>
								<p class="NowHasGoods">现在有货</p>
								
               <?php }?>
							</div>
						</div>
						<div class="cont3r6">
							<a href="" class="btnnowbuy">
								<span>立即购买</span>
							</a>
							<input type="submit" class="btnaddtocart" value=""/>
						</div>
						<div class="CarBox_Main">
							<h2 class="CarBox_Title">
				            <span>商品成功放入购物车</span><span class="close fr"></span>
				            </h2>
				            <span class="blank20"></span>
				            <div class="CarBox_Content">
					            <div class="CarBox_bg"></div>
					            <div class="CarBox_NumPrice">
					                <span class="line01 fl"></span>
					                <div class="fl" style="padding-top: 14px;">
					                    <p>
					                        <span>共有</span><span id="shopcarcount">1</span><span>件商品</span>
					                    </p>
					                    <p><span>总计</span><span id="shopcarcount1">￥<?php echo $data['sale']?></span>
					                    </p>
					                </div>
					            </div>
					            <div class="CarBox_Btn">
					                <div class="CarBox_goCar">
					                   <a href="<?php echo U('Cart/index')?>">去购物车</a>
					                </div>
					                <div id="continueshop" class="CarBox_nowCheckout CarBox_nowContinueBuy jxgwbtn">
					                    <a href="#" class="track" name="item-continueshop">&lt;&lt;继续购物</a></div>
					            </div>
					            <span class="blank5"></span>
					        </div>
						</div>
						<span class="blank20"></span>
					</div>
				</div>
			</div>
		</form>
			<div id="bigView" style="z-index: 10; width: 440px; height: 400px; top: 247px; left: 588.5px; display: none;">
    			<img src="<?php echo $data['photo'][1]?>" id="i1" style="width: 800px; left: -87px; top: -400px;">
			</div>
			<span class="blank20"></span>
			<!--产品-->
			<div class="cm">
				<span class="blank20"></span>
				<div class="cm1">
					<h3>产品描述：</h3>
					<span class="blank10" style="height: 8px;"></span>
					<p class="productMS" style="line-height: 20px">
			             <?php echo $data['intro']?>
			        </p>
			        <span class="blank20"></span>
				</div>
				<div class="cm2">
					<h3>产品属性：(点击属性可查看同类商品)</h3>
					<div class="cm2m">
						<ul>
						<?php foreach ($specl as $v){?>
						<li><span><?php echo $v['taname']?>：</span><a href=""><?php echo $v['opt']['gavalue']?></li>
						<?php }?>	
						</ul>
					</div>
				</div>
				<span class="blank20"></span>
				<h3>洗涤说明：</h3>
				<div class="syt">
				    <span class="SpriteWashings" title="40度水温 常规洗" style="background-position: 0px -0px">
				    </span>
				    <span class="SpriteWashings" title="不可氯漂" style="background-position: 0px -80px">
				    </span>    
				    <span class="SpriteWashings" title="低温熨烫，最高110度" style="background-position: 0px -160px">
				    </span>   
				    <span class="SpriteWashings" title="不可干洗" style="background-position: 0px -240px">
				    </span>    
				    <span class="SpriteWashings" title="不可转笼翻转干燥" style="background-position: 0px -320px">
				    </span>    
				    <span class="SpriteWashings" title="平摊干燥" style="background-position: 0px -400px">
				    </span>    
				</div>
				<div class="cm3">
					<h3>产品尺码表：（单位：cm）</h3>
					<span class="blank10" style="height: 15px;"></span>
					<div class="sizeList">
                <table border="1" cellpadding="0" cellspacing="0" width="633">
					<tbody>
					<tr>
					<td class="col01">尺码</td>
					<td class="col02">号型</td>
					<td class="col03">下摆围（1/2）</td>
					<td class="col04">胸围（1/2）</td>
					<td class="col05">后衣长</td>
					<td class="col06">袖长</td>
					<td class="col07">肩宽</td></tr>
					<tr>
					<td>S</td>
					<td>165/88A</td>
					<td>41</td>
					<td>51</td>
					<td>64</td>
					<td>61.6</td>
					<td>42</td></tr>
					<tr>
					<td>M</td>
					<td>170/92A</td>
					<td>43</td>
					<td>53</td>
					<td>66</td>
					<td>62.8</td>
					<td>43</td></tr>
					<tr>
					<td>L</td>
					<td>175/96A</td>
					<td>45</td>
					<td>55</td>
					<td>68</td>
					<td>64</td>
					<td>44</td></tr>
					<tr>
					<td>XL</td>
					<td>180/102B</td>
					<td>47</td>
					<td>57</td>
					<td>70</td>
					<td>65.2</td>
					<td>45.2</td></tr>
					<tr>
					<td>XXL</td>
					<td>185/108B</td>
					<td>49</td>
					<td>59</td>
					<td>72</td>
					<td>66.4</td>
					<td>46.4</td>
					</tr>
					</tbody>
                </table>
					</div>
					<span class="blank10" style="height: 15px;"></span>
				</div>
				<h3>详情图片：</h3>
				<span class="blank10" style="height: 8px;"></span>
				<h3 style="font-weight: normal;">
		            <span>注：</span>
		            <span name="item-item-info-tip">商品实际颜色以静物图为准</span>
		        </h3>
		        <span class="blank10" style="height: 5px;"></span>
		        <div>
		        	<img src="<?php echo __PUBLIC__?>/Home/img/lianmaodangg_01.jpg"/>
		        </div>
		        <div class="cm4">
		        	<div class="cm4r fl">
		        		<h2 class="hotTitle">热销产品</h2>
		        		<ul>
		        		<li><a href=""><img src="<?php echo __PUBLIC__?>/Home/img/p1.jpg" alt="" /></a>
		        			<h4><a>凡客羽绒服 匈牙利鹅绒 男款 黑色</a></h4>
		        			<p><em>售价￥999</em></p>
		        		</li>
		        		<li><a href=""><img src="<?php echo __PUBLIC__?>/Home/img/p1.jpg" alt="" /></a>
		        			<h4><a>凡客羽绒服 匈牙利鹅绒 男款 黑色</a></h4>
		        			<p><em>售价￥999</em></p>
		        		</li>
		        		<li><a href=""><img src="<?php echo __PUBLIC__?>/Home/img/p1.jpg" alt="" /></a>
		        			<h4><a>凡客羽绒服 匈牙利鹅绒 男款 黑色</a></h4>
		        			<p><em>售价￥999</em></p>
		        		</li>
		        		<li><a href=""><img src="<?php echo __PUBLIC__?>/Home/img/p1.jpg" alt="" /></a>
		        			<h4><a>凡客羽绒服 匈牙利鹅绒 男款 黑色</a></h4>
		        			<p><em>售价￥999</em></p>
		        		</li>
		        		<li><a href=""><img src="<?php echo __PUBLIC__?>/Home/img/p1.jpg" alt="" /></a>
		        			<h4><a>凡客羽绒服 匈牙利鹅绒 男款 黑色</a></h4>
		        			<p><em>售价￥999</em></p>
		        		</li>
		        		</ul>
		        	</div>
		        	<div class="cm4p fr">
		        		<div>
		        			<h2 class="hotTitle">最新评论(共<span>74</span>条)</h2>
		        		</div>
		        		<div class="cm4pc">
		        			<a href=""><span>我要评论</span></a>
		        		</div>
		        		<div class="cm4pn">
		        			<div class="pinglunTab">
		        				<div class="pinglunTabLef fl">
				                    <div class="pinlunCon fl">
				                        <p>勉强留着，算是对凡客的支持吧，希望狠把品质关啊</p>
				                        <span class="pinlunTime">2015/11/19 19:02:43</span>
				                    </div>
				                    <div class="productCon fr">
				                        <span>颜色：藏蓝色</span>
				                        <span>尺码：M   </span>
				                        <span>身高：0cm</span> 
				                        <span>体重：0.0kg</span> 
				                        <span class="plsize">
				                            &lt;尺码偏大&gt;
				                        </span>
				                    </div>
				                </div>
				                <div class="pinglunTabRig fr">
				                    <a>1591*****61</a><span class="blank10"></span>
				                    <div class="UserLevel" style="background-position: 0px -0px"></div>
				                </div>
		        			</div>
		        		</div>
		        	</div>
		        	<div class="cm4p fr" style="margin-top: 20px;">
		        		<div>
		        			<h2 class="hotTitle">最新提问(共<span>74</span>条)</h2>
		        		</div>
		        		<div class="cm4pc">
		        			<a href=""><span>我要提问</span></a>
		        			<div class="stylequestionslist">
		        				<div class="areaquestion">
					                <span class="blank20"></span>
					                <div class="userQuesArea">
					                    <h4>
					                        <span class="danpinQ fl">Q</span>952078***@***：</h4>
					                    <h5>
					                        2015/11/15 12:16:58
					                        <a id='myReply'>我要回复<span style="display: inline;">(0)</span></a></h5>
					                </div>
					                <div class="questionTitle">藏蓝色色差好大</div>
					                <span class="blank20"></span>
					                <h6 style="display: none;">管理员45052<span>回答：</span></h6>
					                <p class="adminAsk">
					                 <span class="danpinA fl">A</span>
					                 亲爱的客户您好，由于电脑及手机的分辨率不同，与实物是会略有不同的，祝您购物愉快！\(^o^)/~</p>
					                  <span class="blank20"></span>
					            </div>
		        			</div>
		        		</div>
		        	</div>
		        </div>
			</div>
			<!--结尾-->
			<span class="blank20"></span>
			<div class="vanclFootBox">
				<div class="vanclFoot">
					<ul>
						<li><h2>关于凡客</h2>
							<p><a>公司简介</a></p>
							<p><a style="color: #333;">联系我们</a></p>	
							<p><a>友情链接</a></p>
						</li>
						<li><h2>新手指南</h2>
							<p><a>账户注册</a></p>
							<p><a>购物流程</a></p>
							<p><a>网站地图</a></p>
							<p><a href="">商家入驻</a></p>
						</li>
						<li><h2>配送范围及时间</h2>
							<p><a>国内配送</a></p>
							<p><a>订单拆分</a></p>
						</li>
						<li><h2>支付方式</h2>
							<p><a>在线支付</a></p>
							<p><a>礼品卡及账户余额</a></p>
							<p><a>其他支付方式</a></p>
						</li>
						<li><h2>售后服务</h2>
							<p><a>退换货政策</a></p>
							<p><a>退换货办理流程</a></p>
							<p><a>退换货网上办理</a></p>
							<p><a>退款说明</a></p>
						</li>
						<li class="footline">
							<h2>帮助中心</h2>
							<p><a>在线客服</a></p>
							<p><a>隐私声明</a></p>
						</li>
					</ul>
				</div>
				<div class="footIcon">
					<ul>
						<li class="returnProduct">
							<a href="//help.vancl.com/Category/43-1.html" class="returnGoods" rel="nofollow" target="_blank"></a>
						</li>
						<li class="buyProduct">
							<a target="_blank" href="//help.vancl.com/category/transfer" class="freeShip" rel="nofollow"></a>
						</li>
						<li class="payMoney">
							<a target="_blank" href="//help.vancl.com/Category/24-1.html" class="cashOn" rel="nofollow"></a></li>
						<li class="cusService">
							<a target="_blank" href="//help.vancl.com/Home/contact" class="cusService" rel="nofollow"></a>
						</li>
					</ul>
				</div>
				<div class="footBottom">
					<div class="footBottomTab">
					<p>Copyright 2007 - 2015 vancl.com All Rights Reserved 京ICP证100557号 京公网安备11011502002400号 出版物经营许可证新出发京批字第直110138号</p>
					</div>
				</div>
				<span class="blank20"></span>
				<div class="subFooter">
					<a rel="nofollow" href="https://search.szfw.org/cert/l/CX20111229001302001330" class="redLogo" target="_blank"></a>
					<span class="costumeOrg"></span>
					<a rel="nofollow" href="//www.315online.com.cn/member/315090053.html" class="wsjyBzzx" target="_blank"></a>
					<a rel="nofollow" href="//www.hd315.gov.cn/beian/view.asp?bianhao=010202010081900017" class="vanclMsg" target="_blank"></a>
					<a class="vanclqingNian" target="_blank" href="//www.vancl.com/help/about_2.htm" rel="nofollow"></a>
					<a href="//trust.cctvmall.cn/reg/templates/brandtem1010.html" target="_blank"><img style="width:120px;height:39px;" src="<?php echo __PUBLIC__?>/Home/img/kexin_brand_for_others.png"></a><div class="blank0">	
					</div>
				</div>
			</div>
	</body>
</html>
